package com.exrobot.module.rbt.controller.admin.order.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.exrobot.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.exrobot.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 食堂信息分页 Request VO")
@Data
public class OrderPageReqVO extends PageParam {

    @Schema(description = "订单类型(0:预售订单，1:实时订单)", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer orderType;

    @Schema(description = "订单号")
    private String orderSn;

    @Schema(description = "订单号集合")
    private Collection<String> orderSns;

    @Schema(description = "客户电话")
    private String mobile;

    @Schema(description = "商家编码")
    private Long canteenSn;

    @Schema(description = "菜单编码", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<Long> menuSns;

    @Schema(description = "存餐验证吗")
    private String saveCode;

    @Schema(description = "取餐验证吗")
    private String checkCode;

    @Schema(description = "配送点位（商户号）")
    private String point;

    @Schema(description = "任务ID", example = "15677")
    private String taskId;

    @Schema(description = "机器人SN")
    private String robotSn;

    @Schema(description = "订单时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] orderTime;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "状态(0:未配送，5:已分配，10:完成)", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer status;

}